package com.hypo.feign;

import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("ribbonclient")
public interface TestClientInterface {
    @RequestMapping(value = "/test/getPort", method = RequestMethod.GET)
    String getPort();

    @RequestMapping(value = "/test/add", method = RequestMethod.POST)
    void add();

    @RequestMapping(value = "/test/update", method = RequestMethod.POST)
    void update();
}
